package com.neo.base.actorTest

import  akka.actor.Actor
import  akka.actor.ActorSystem
import  akka.actor.Props


class  HelloActor extends Actor{
  override def receive: Receive = {
    case "Hello" => println("Hello back at you")
    case _ => println("huh?")
  }
}


object Main extends App{
  val systemTest = ActorSystem("HelloSystem")
  val helloActor = systemTest.actorOf(Props[HelloActor],name = "helloactor")

  helloActor ! "Hello"
  helloActor ! "buenos dias"
  systemTest.shutdown()
}


